<?php
/**
 * Created by PhpStorm.
 * User: xiangpeng
 * Date: 2016/12/27
 * Time: 12:29
 */

namespace Common\Model;


class BrandModel extends BaseModel
{
    //主键
    protected  $pk = 'bid';
    //操作那个数据表
    protected $tableName = 'brand';
    //自动验证
    protected $_validate =[
        ['bname','require','品牌名称不能为空',1,3],
        ['bsort','require','权重不能为空',1,3],
        ['logo','require','logo不能为空',1,3],


    ];


}